package org.stwy.bills.manage;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.stwy.custom.CustomEntity;
import org.stwy.pro.asset.AssetEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rap.common.annotation.MetaData;
import com.rap.common.entity.BaseEntity;

/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-17 10:14:46
*<p></p>
*
*@参与人：Rap.Codegen
*/
 
@MetaData(value = "物业管理费和其他费用")
@Entity
@Table(name = "stwy_managebills")
@DynamicInsert
@DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ManageBillsEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	@MetaData(value = "年月",comments="" )
	@Column(nullable = false,length=10)
	private String yearMonth;
	
	@MetaData(value = "客户名称",comments="" )
	@ManyToOne
	@JoinColumn(name = "customId")
	private CustomEntity custom;
	
	@MetaData(value = "资产名称",comments="" )
	@ManyToOne
	@JoinColumn(name = "assetId")
	private AssetEntity asset;
	
	@MetaData(value = "租金",comments="" )
	@Column(nullable = true)
	private Double rent;
	
	@MetaData(value = "管理费",comments="" )
	@Column(nullable = true)
	private Double manage;
	
	@MetaData(value = "空调费",comments="" )
	@Column(nullable = true)
	private Double airConditioner;
	
	@MetaData(value = "维修费",comments="" )
	@Column(nullable = true)
	private Double maintenance;
	
	@MetaData(value = "电话费和租金",comments="" )
	@Column(nullable = true)
	private Double telPhone;
	
	@MetaData(value = "违约金",comments="" )
	@Column(nullable = true)
	private Double breakContract;
	
	@MetaData(value = "宽网费",comments="" )
	@Column(nullable = true)
	private Double internet;
	
	@MetaData(value = "备注",comments="" )
	@Column(nullable = true,length = 1000)
	private String remark;
	
	
	public String getYearMonth() {
		return yearMonth;
	}
	public void setYearMonth(String yearMonth) {
		this.yearMonth = yearMonth;
	}
	public CustomEntity getCustom() {
		return custom;
	}
	public void setCustom(CustomEntity custom) {
		this.custom = custom;
	}
	public AssetEntity getAsset() {
		return asset;
	}
	public void setAsset(AssetEntity asset) {
		this.asset = asset;
	}
	/**
	 * 物业费
	 */
	public Double getManage(){
		return this.manage;
	}
	public void setManage(Double manage){
		this.manage = manage;
	}
	/**
	 * 空调费
	 */
	public Double getAirConditioner(){
		return this.airConditioner;
	}
	public void setAirConditioner(Double airConditioner){
		this.airConditioner = airConditioner;
	}
	/**
	 * 维修费
	 */
	public Double getMaintenance(){
		return this.maintenance;
	}
	public void setMaintenance(Double maintenance){
		this.maintenance = maintenance;
	}
	/**
	 * 电话费和租金
	 */
	public Double getTelPhone(){
		return this.telPhone;
	}
	public void setTelPhone(Double telPhone){
		this.telPhone = telPhone;
	}
	/**
	 * 违约金
	 */
	public Double getBreakContract(){
		return this.breakContract;
	}
	public void setBreakContract(Double breakContract){
		this.breakContract = breakContract;
	}
	/**
	 * 宽带费
	 */
	public Double getInternet(){
		return this.internet;
	}
	public void setInternet(Double internet){
		this.internet = internet;
	}
	/**
	 * 备注
	 */
	public String getRemark(){
		return this.remark;
	}
	public void setRemark(String remark){
		this.remark = remark;
	}
	
}
